home *** CD-ROM | disk | FTP | other *** search
- /**************************************************************************
- *
- * @@@BUILDINFO@@@ 02shutdown.jsx 1.0.0.47 07-Feb-2005
- * Copyright 2005 Adobe Systems Incorporated
- * All Rights Reserved.
- *
- * NOTICE: All information contained herein is, and remains the property of
- * Adobe Systems Incorporated and its suppliers, if any. The intellectual
- * and technical concepts contained herein are proprietary to Adobe Systems
- * Incorporated and its suppliers and may be covered by U.S. and Foreign
- * Patents,patents in process,and are protected by trade secret or copyright
- * law. Dissemination of this information or reproduction of this material
- * is strictly forbidden unless prior written permission is obtained from
- * Adobe Systems Incorporated.
- **************************************************************************/
-
- // Shutdown code.
-
- app.shutdown = false;
-
- app.queryShutdown = function()
- {
- // check whether all debug sessions are stopped
- app.shutdown = true;
- var ok = Debugger.queryExit();
- app.shutdown = ok;
- return ok;
- }
-
- // Write the current prefs during app shutdown
-
- app.onShutdown = function (shiftKeyPressed)
- {
- app.shutdown = true;
- // stop timers
- app.cancelTask();
- // defined in 17prefs.jsx
- if (!shiftKeyPressed)
- prefs.save();
- }
-